package operation;

import Book.Book;
import Book.BookList;

public class ShowOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println();
        System.out.println("*************************");
        int bnum=bookList.getNum();

        for (int i = 0; i < bnum; i++) {
            Book book=bookList.getBooks(i);
            System.out.println(book);
        }
        System.out.println();
        System.out.println("*************************");
    }
}
